# -*- coding:utf-8 -*-

import unittest, os

# 用例路径
case_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "./case")

# 报告存放路径
report_path = os.path.join(os.getcwd(), "report")

def all_case():
    discover = unittest.defaultTestLoader.discover(case_dir,
                                                   pattern="test*.py",
                                                   top_level_dir=None)
    print(discover)
    return discover

if __name__ == '__main__':
    runner = unittest.TextTestRunner()
    runner.run(all_case())
